package com.codeblock_;

public class CodeBlockDetail02 {
    public static void main(String[] args) {

        A a = new A();
    }
}

class A{

    //静态属性初始化
    private static int n1 = getN1();

    static {
        System.out.println("A 静态代码块");
    }

    public static int getN1(){
        System.out.println("getN1()被调用");
        return 1;
    }
    public A(){
        System.out.println("A 无参构造器被调用");
    }
}

